package com.gzhryc.shared_device.oem.code.device;

import com.gzhryc.shared_device.bxscn.core.BXSCNConstants;
import com.gzhryc.shared_device.cdb.core.CDBConstants;
import com.gzhryc.shared_device.cdcz.core.CDCZConstants;
import com.gzhryc.shared_device.pcl.core.PCLConstants;

public enum EDeviceFunCode {

    CDCZ(CDCZConstants.DeviceFunCode,"充电插座")
    ,CDB(CDBConstants.DeviceFunCode,"共享充电宝")
    ,BXSCN(BXSCNConstants.DeviceFunCode,"便携式储能电池")
    ,PCL(PCLConstants.DeviceFunCode,"便捷线充");

    private String index;
    private String note;

    EDeviceFunCode(String index,String note) {
        this.index = index;
        this.note = note;
    }

    public String note() {
        return note;
    }

    public String index(){
        return index;
    }

    public static String note(String index) {
        EDeviceFunCode[] temp = EDeviceFunCode.values();
        for (int i = 0; i < temp.length; i++) {
            EDeviceFunCode item = temp[i];
            if (item.index.equals(index)) {
                return item.note;
            }
        }
        return null;
    }

}
